package com.daohang361.imqq.decoder;

import com.daohang361.imqq.Asycore.QQUser;
import com.daohang361.imqq.tool.Hex2Bytes;
/**
 * default decoder
 * @author naner
 */
public class DefaultDecoder extends AbstractDecoder {
@Override
public QQUser decode() throws Exception {
	System.out.println("命令:"+Integer.toHexString(myArray.getCommand())+"没有找到合适解码器，使用默认解码器.");
	myArray.decryptRemain(sessionQQ.getAttr("SessionKey"));
	decryptAll=myArray.extractAll();
System.out.println(Integer.toHexString(myArray.getCommand())+":"+Hex2Bytes.bytesToHexString(decryptAll));
	sessionQQ.setPakage(sessionQQ.getPakage()+1);//登陆包自动增长
	return sessionQQ;
}
}
